package com.situation.service;

import com.github.pagehelper.PageInfo;
import com.situation.pojo.DO.BizConsumer;
import com.situation.pojo.DO.BizOutStock;
import com.situation.pojo.VO.OutStockVO;

import java.util.List;

public interface OutStockService {

    /**
     *
     * @param pageNum 第几页
     * @param pageSize 每页显示
     * @param outStock 实体类
     * @return
     */
    PageInfo<OutStockVO> queryAll(int pageNum, int pageSize,BizOutStock outStock);


    /**
     *
     * @param pageNum 第几页
     * @param pageSize 显示条数
     * @param outNum 发放单号
     * @return pageinfo对象
     */
    PageInfo<OutStockVO> queryInfo(int pageNum, int pageSize,String outNum);

    /**
     * 发放明细的收货人
     * @param outNum
     * @return
     */
    BizConsumer queryCon(String outNum);

    /**
     * 删除
     * @param outNum 编号
     * @return
     */
    Boolean deleteById(String outNum);

    /**
     * 修改状态
     * @param outNum
     * @param status
     * @return
     */
    Boolean updateStatus(String outNum,int status) throws IllegalAccessException;


    /**
     * 添加
     * @param outStockVO
     * @return
     */
    void insert(OutStockVO outStockVO) throws IllegalAccessException;



}
